package lesson18;

public class Human extends Mammal
{

	@Override
	void makeNoise() 
	{
		System.out.println("Screaming");
	}

	@Override
	public void move(String direction) 
	{
		System.out.println("human is walking.");
		
	}

	@Override
	void giveBirth(int children) 
	{
		if (children <= 8)
		{
			System.out.printf("Human gave birth to %d children.", children);
			System.out.println();
		}
		else
		{
			System.out.printf("It's not possible to give birth to %d children.", children);
			System.out.println();
		}
		
	}
	
	@Override
	public void breathe()
	{
		System.out.println("Human is breathing lalalala!");
	}

}
